disable color shell tests for terminals that don't support color
Some terminals (e.g. running a shell inside Emacs's shell-mode) don't
support color, and running tests that assume the terminal supports color
don't work so well. Instead, if color is expected, check the terminal
for whether it supports color or not, and act accordingly.